<?php

header('Content-type: text/html; charset=utf-8');

echo "Executando o While --\$i";

$i = $_GET['i'];
while (--$i > 0) {
	echo "<br>O valor de \$i é: $i";
}
echo "<br><br>Executando o while com \$i--";


$i = $_GET['i'];
while ($i-- > 0) {
	echo "<br>O valor de \$i é: $i";
}


echo "<br><br>Executando o Do-while";
$i = $_GET['i'];
do {
	echo "<br>O valor de \$i é: $i";
} while (--$i > 0);


?>